import React, { Component } from "react";
import { withRouter } from "react-router-dom";
import {observer} from 'mobx-react';
import { Tools } from 'weaver-mobile';

const getLabel = Tools.getLabel;

@withRouter
@observer
export default class SignBtn extends Component {
    onPunchOutButtonCallback = () => {
        this.props.history.go(-1)
    }

    render(){
        const {store} = this.props;

        return (
            <div className='signBtn' onClick={() => store.punchOutButton(this.onPunchOutButtonCallback)}>{getLabel('725','提交')}</div>
        )
    }
}